import qrcode
 
url = 'https://www.baidu.com'
# qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_H, box_size=10, border=2)
# qr.add_data(url)
# qr.make(fit=True)
# img = qr.make_image(fill_color="black", back_color="white").convert('RGB')
# img.save('./status/qrcode1.png')

img = qrcode.make(url);
img.save('./status/qrcode1.png')